<template>
  <div style="background-color: #ffffff" ref="monitorExpandBody">
    <Row class="expand-row">
      <!--<Col span="1">
      &nbsp;
      </Col>
      <Col span="7">
      <Card :bordered="false">
        <p slot="title">基本参数</p>
        <ul>
          <li>
            <Tag color="blue">所属停车场</Tag>
            <label>{{row.lotId}}</label>
          </li>
          <li>
            <Tag color="blue">车位编号</Tag>
            <label>{{row.code}}</label>
          </li>
          <li>
            <Tag color="blue">设备编号</Tag>
            <label>{{row.deviceCode}}</label>
          </li>
          <li>
            <Tag color="blue">车位状态</Tag>
            <label>{{row.status}}</label>
          </li>
        </ul>
      </Card>
      </Col>-->
      <Col span="1">
      &nbsp;
      </Col>
      <Col span="11">
      <Card :bordered="false">
        <p slot="title">状态参数</p>
        <ul>
          <li>
            <Tag color="blue">状态时间</Tag>
            <!--<label class="prepare" v-if="row.statusTime==undefined">未改变</label>-->
            <label class="prepare">{{row.statusTime}}</label>
          </li>
          <li>
            <Tag color="blue">刷新时间</Tag>
            <label class="prepare">{{row.updateTime}}</label>
          </li>
          <li>
            <Tag color="blue">运行时长</Tag>
            <label class="prepare">{{row.devData.RunTime}}</label>
          </li>
          <li>
            <Tag color="blue">状态计数</Tag>
            <label class="prepare">{{row.devData.RunTime}}</label>
          </li>
          <li>
            <Tag color="blue">信号强度</Tag>
            <label class="prepare">{{row.devData.Signal}}</label>
          </li>
          <li>
            <Tag color="blue">灵&nbsp;&nbsp;敏&nbsp;&nbsp;度</Tag>
            <label class="prepare">{{row.devData.hardData.Sensitivity}}</label>
          </li>
          <li>
            <Tag color="blue">磁感数据</Tag>
            <label class="prepare" v-if="row.devData.XAxis==undefined">初始化</label>
            <label class="prepare" v-else>X:{{row.devData.XAxis}};Y:{{row.devData.YAxis}};Z:{{row.devData.ZAxis}};CK:{{row.devData.Reserve}}</label>
          </li>
          <li>
            <Tag color="blue">电池电量</Tag>
            <label class="prepare">{{row.devData.RemainingBattery}}</label>
          </li>
        </ul>
      </Card>
      </Col>
      <Col span="1">
      &nbsp;
      </Col>
      <Col span="11">
      <Card :bordered="false">
        <p slot="title">硬件参数</p>
        <ul>
          <li>
            <Tag color="blue">固件版本</Tag>
            <label class="prepare">{{row.devData.hardData.FirmwareVersion}}</label>
          </li>
          <li>
            <Tag color="blue">硬件版本</Tag>
            <label class="prepare">{{row.devData.hardData.HardwareVersion}}</label>
          </li>
          <li>
            <Tag color="blue">协议版本</Tag>
            <label class="prepare">{{row.devData.hardData.ProtocolVersion}}</label>
          </li>
          <li>
            <Tag color="blue">模组编号</Tag>
            <label class="prepare">{{row.devData.hardData.IMEI}}</label>
          </li>
          <li>
            <Tag color="blue">模组厂商</Tag>
            <label class="prepare" v-if="row.devData.hardData.IMEIFactory=='1'">移远</label>
            <label class="prepare" v-else>{{row.devData.hardData.IMEIFactory}}</label>
          </li>
          <li>
            <Tag color="blue">物联网号</Tag>
            <label class="prepare">{{row.devData.hardData.IotNum}}</label>
          </li>
          <li>
            <Tag color="blue">运&nbsp;&nbsp;营&nbsp;&nbsp;商</Tag>
            <label class="prepare" v-if="row.devData.hardData.TelecomOperators=='1'">电信</label>
            <label class="prepare" v-else>{{row.devData.hardData.TelecomOperators}}</label>
          </li>
          <li>
            <Tag color="blue">设备厂牌</Tag>
            <label class="prepare" v-if="row.devData.hardData.DeviceBrand=='1'">RHEA</label>
            <label class="prepare" v-else>{{row.devData.hardData.DeviceBrand}}</label>
          </li>
          <li>
            <Tag color="blue">生产日期</Tag>
            <!--<label class="prepare">{{row.devData.hardData.ProduceDate}}</label>-->
            <label class="prepare"></label>
          </li>
        </ul>
      </Card>
      </Col>
      <Col span="1">
      &nbsp;
      </Col>
    </Row>

  </div>
</template>

<script>
  import Bus from '@/bus/bus.js'

  export default {
    name: "parking-space-expand-row",
    components: {},
    props: {
      row: {},
      expandChildHeight: '',
      parentTabHeight: ''
    },
    data() {
      return {

      }
    },
    methods: {
    },
    mounted() {
      this.$nextTick(() => {
        this.devData = this.row.devData;
        console.log(this.row)
        // this.expandChildHeight = this.$refs.monitorExpandBody.offsetHeight;
        // console.log(this.expandChildHeight)
        // console.log(this.parentTabHeight)
        // this.parentTabHeight = this.parentTabHeight + this.expandChildHeight;
      })
    },
    created(){
    }
  }
</script>

<style scoped>
  li {
    list-style-type: none;
  }
  /*.prepare {*/
    /*margin-left: 20px;*/
    /*color: #3b94f1;*/
  /*}*/
</style>
